package com.guigu.youxuan.controller;

import com.github.pagehelper.PageInfo;
import com.guigu.youxuan.pojo.GatherDetails;
import com.guigu.youxuan.pojo.OutboundDetail;
import com.guigu.youxuan.service.IOutboundDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@CrossOrigin
@Controller
@RequestMapping("/outboundDetail")
public class OutboundDetailController {
    @Autowired
    private IOutboundDetailService iOutboundDetailService;
    /**
     * 出库明细列表查询所有出库明细表信息
     * @return
     */
    @RequestMapping("/OutStorageDetailList/{payId}")
    @ResponseBody
    public PageInfo<OutboundDetail> OutStorageDetailList(@PathVariable int payId){
        PageInfo<OutboundDetail> page=this.iOutboundDetailService.OutStorageDetailList(payId);
        return page;
    }
}
